package org.cicd.GitInfo;
def parseGit(){
    env.GIT_COMMIT_TAG = sh (script: "/root/.ci/check_git_tags.sh", returnStdout: true).trim()
    env.GIT_COMMIT_ID_SHORT = sh (script: 'git rev-parse --short HEAD', returnStdout: true).trim()
    env.GIT_COMMIT_ID = sh (script: 'git rev-parse HEAD', returnStdout: true).trim()
    env.GIT_COMMIT_MSG = sh (script: 'git log -1 --pretty=%B', returnStdout: true).trim()
    env.GIT_BRANCH= sh (script: "git branch  |grep '*' | sed 's/^.//' | cut -c2-", returnStdout: true).trim()
}

def commonEnv(){
    env.CICD_DOCKER_REGISTRY = "registry.geoway.com"
    env.MINIO_REGISTRY = "myminio"
}
return this